Identify amplifier or transistor
I think it's a SD5054 lithium battery charge manager by Shouding.
It looked like a sot-23-5 package to me so I found this product page
by searching on google: &quot;k17h&quot; sot-23-5.
In the datasheet you'll find some info (in chinese) about the naming of this chip. It says there:

k1XY
XY=日期代码

In google translate &quot;日期代码&quot; translates to &quot;Date code&quot;
To answer your question about a database for SMD codes, you'll find some smd code books on google, for example this book which I sometimes use.