bug #4607 Syntax error during db_copy operation

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
Merge branch 'QA_4_2' into QA_4_3

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>